(:: pragma bea:global-element-parameter parameter="$cli_get_info_res1" element="ns3:cli_get_info_res" location="../../../CL_ATG_ClienteConsultar_IMPL/Resource/wsdl/cli_get_info_response.xsd" ::)
(:: pragma bea:global-element-return element="ns1:getClientInfoReq" location="../../../CL_TRXCLI_ClienteConsulta_IMPL/Resources-v3.0/Schemas/TransacClienteMsg.xsd" ::)

declare namespace xf = "http://tempuri.org/CL_OSB_ClienteCrear_COMP/Resource/xq/Atg2Trx/";
declare namespace ns0 = "http://datos.sodimac.com/commons_v2.0";
declare namespace ns1 = "http://msg.sodimac.cl/TransacClienteMsg";
declare namespace ns3 = "http://www.falabella.com/schemas/cli_get_info_res";
declare namespace ns2 = "http://datos.sodimac.cl/Siebel";

declare function xf:Atg2Trx($cli_get_info_res1 as element(ns3:cli_get_info_res))
    as element(ns1:getClientInfoReq) {
        <ns1:getClientInfoReq>
            <ns1:cabecera version = "10">
                <idProceso>a</idProceso>
                <idUsuario>13</idUsuario>
                <localizacion pais = "cl"
                              empresa = "so"
                              sucursal = "777"/>
            </ns1:cabecera>
            <ns1:payload>
                <ns1:Location>{ data($cli_get_info_res1/ns3:response/ns3:account/ns2:Location) }</ns1:Location>
                <ns1:GetListOfContact>Y</ns1:GetListOfContact>
                <ns1:GetListOfAddress>N</ns1:GetListOfAddress>
                <ns1:GetListOfSalesRep>N</ns1:GetListOfSalesRep>
                <ns1:GetListOfCreditProfile>N</ns1:GetListOfCreditProfile>
                <ns1:GetListOfIndustry>N</ns1:GetListOfIndustry>
                <ns1:GetListOfOrganization>N</ns1:GetListOfOrganization>
            </ns1:payload>
        </ns1:getClientInfoReq>
};

declare variable $cli_get_info_res1 as element(ns3:cli_get_info_res) external;

xf:Atg2Trx($cli_get_info_res1)